<@override name="title">角色管理</@override> <@override name="content">
<div>
    <ul class="breadcrumb">
        <li><a href="#" id="navTitle">系统设置</a></li>
        <li><a href="#">角色管理</a></li>
    </ul>
    <div style="text-align: right" data-permissions="角色管理_EDIT">
        <a class="btn btn-success" href="./edit">添加</a>
    </div>
    <table class="table table-striped table-hover">
        <thead>
            <tr>
                <th>名称</th>
                <th>超级管理员</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody id="dataContainer">
            <#list dataList as item>
            <tr data-id="${item.id}">
                <td>${item.name}</td>
                <td>${item.master?string('是', '否')}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-sm btn-info" href="./edit?id=${item.id}" data-permissions="角色管理_EDIT">编辑</a>
                        <#if !item.master> <a class="btn btn-sm btn-primary" href="./resource?id=${item.id}" data-permissions="角色管理_EDIT">权限</a>
                        </#if>
                        <button type="button" class="btn btn-sm btn-danger js-delete" data-id="${item.id}" data-permissions="角色管理_DELETE">删除</button>
                    </div>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
</div>
</@override> <@override name="scripts">
<script type="text/javascript" src="${request.contextPath}/js/bg/common.action.js"></script>
</@override> <@extends name="../base.html" />
